<?php #coding: utf-8 æ ø å ?>

<div style="float:right;margin:0px 0px 10px 10px;width:160px;">
	<div style="border:#D0C6B0 2px solid;background:#F6F3E9;padding:10px;height:140px;width:140px;">
		<?	if(isset($primaer_billede['url'])) {?>
			<p style="height:140px;width:140px;text-align:center;margin-top:0px;margin-bottom:0px;">
				<a class="fancybox" href="<? echo base_url();?>galleri/<? echo $primaer_billede['url'];?>">
					<img src="<? echo base_url();?>galleri/thumbs/<? echo $primaer_billede['url'];?>" alt="" />
				</a>
			</p>
	<?
		}
        else {
            echo "<a style='text-decoration:none;' href='".base_url()."core/vis/se/".$type."/".$stamdata['id']."/upload_billede'><h1 style='color:#DED6BA;height:140px;width:140px;text-align:center;margin-top:0px;margin-bottom:0px;font-size:120px;'>?</h1>";
        }
	?>
	</div>
	<h3 style="text-align:center;"><a href="<? echo base_url();?>core/vis/se/<? echo $type;?>/<?echo $stamdata['id'];?>/upload_billede" class="rubrik" >Upload billede</a></h3>

    <!--h3 style="text-align:center;">
      <a href="#" onclick="showstuff('detalje_menu')" class="rubrik">Tilføj detalje</a>  
    </h3>


    <p id="detalje_menu" style="display:none;border:#D0C6B0 2px solid;background:#F6F3E9;padding:10px;width:140px;">
    <?  
    //print_r($detalje_menu_elementer);
    foreach($features as $f) { 
       echo anchor("core/vis/se/".$type."/".$stamdata['id']."/opret_beskrivelse/".$f['feature'],$f['feature_navn'], "class='rubrik'");
       echo br();

    }

?>    <a style="float:right" href="#" onclick="hidestuff('detalje_menu')" class="rubrik">luk</a><br> 
    </p>

    <!--h3 style="text-align:center;">
      <? echo anchor("core/vis/se/".$type."/".$stamdata['id']."/rediger_henvisninger/","Tilføj Kilde henvisning","class='rubrik'");?>  
    </h3-->

</div>



<? /*
	if(isset($primaer_billede['url'])) 
	{?>
		<div style="float:right;margin:0px 10px 0px 10px;">
			<img src="<? echo base_url();?>galleri/<? echo $primaer_billede['url'];?>" style="width:300px;"><br>
	<? echo anchor("core/vis/se/".$type."/".$stamdata['id']."/upload_billede","Upload billede","class='rubrik' style='float:right;'");?>
		</div>
<?		
	}
*/?>



